package com.qf.stock.service.impl;

import com.qf.stock.mapper.StockMapper;
import com.qf.stock.service.StockService;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StockServiceImpl implements StockService {

    @Resource
    private StockMapper stockMapper;

    @Override
    @GlobalTransactional
    public void decr() {
        stockMapper.decr();
    }
}
